package com.example.demo.thread;

/**
 * TODO
 * @author Feny
 * @date Created in 2021/4/17
 */
public class EnumSingalteDemo {
    private EnumSingalteDemo() {
    }

    private enum EnumSingalte {
        INSTANCE;

        private final EnumSingalteDemo instance;

        EnumSingalte() {
            instance = new EnumSingalteDemo();
        }
    }

    public static EnumSingalteDemo getInstance() {
        return EnumSingalte.INSTANCE.instance;
    }
}
